package chuishop.yiqimaicai.service.Impl;

import chuishop.yiqimaicai.mapper.Addgoods_bodyMapper;
import chuishop.yiqimaicai.pojo.Addgoods_body;
import chuishop.yiqimaicai.pojo.Addgoods_header;
import chuishop.yiqimaicai.service.Addgoods_bodyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
//进货单明细
public class Addgoods_bodyImpl implements Addgoods_bodyService {
    @Autowired
    private Addgoods_bodyMapper addgoods_bodyMapper;

    @Override
    public List<Addgoods_body> findAllAddgoods_body() {
        return addgoods_bodyMapper.findAllAddgoods_body();
    }

    @Override
    public List<Addgoods_body> selectAddgoods_body(String input) {
        return addgoods_bodyMapper.selectAddgoods_body(input);
    }

    @Override
    public boolean addAddgoods_body(Addgoods_body addgoods_body) {
        return addgoods_bodyMapper.addAddgoods_body(addgoods_body)>0;
    }

    @Override
    public boolean deleteAddgoods_body(String[] ids) {
        return addgoods_bodyMapper.deleteAddgoods_body(ids)>0;
    }

    @Override
    public boolean updateAddgoods_body(Addgoods_body addgoods_body) {
        return addgoods_bodyMapper.updateAddgoods_body(addgoods_body)>0;
    }
}
